MUISpinnerLoadSpriteSheetΒΆ
MUISpinnerLoadSpriteSheet, hWin:MUIWND, SpriteCount:MUIVALUE, ImageHandleType:MUIIT, idResSpriteSheet:RESID, bReverse:BOOL
Loads a long (wide) image strip from a resource id, to use as the frames of the spinner animation. The width of each frame is calculated by dividing the length of the spritesheet image by SpriteCount
Parameters
- [in] hWin - handle to the ModernUI_Spinner control
- [in] SpriteCount - no of frames to split the spritesheet into
- [in] ImageHandleType - type of image used in resource idResSpriteSheet:
MUIIT_NONE
,MUIIT_BMP
,MUIIT_ICO
, orMUIIT_PNG
- [in] idResSpriteSheet
- [in] bReverse - if
TRUE
reverses order of created frames
Return
Returns TRUE
if successful, or FALSE
otherwise
Example
Invoke MUISpinnerLoadSpriteSheet, hSpinner, 22, MUI_BMP, BMP_SPINSPRITESHEET, FALSE
See Also